<div  class="with-padding">
	<div class="form-group">
	    <label class="col-md-1 control-label">选择班级:</label>
	    <div class="col-md-4">
			<select  class="form-control" ng-model="n" ng-options="n.id as (n.school_name+n.name) for n in nodel ">
				<option value="">-- 请选择班级 --</option>
			</select>
	    </div>
	    <button ng-click="search(n)" class="btn btn-default  btn-primary pull-left" type="button">查看</button>
	</div>
	<table class="table">
		<thead>
			<tr>
				<th>序号</th>
				<th>教学计划</th>
				<th>关联教案</th>
				<th>添加</th>				
			</tr>
		</thead>
		<tbody>
			<tr ng-repeat="teachplan in teachplans">
				<td>{{$index+1}}</td>
				<td>{{teachplan.plan_name}}</td>
				<td>
					<!-- {{}} -->
				</td>
		    	<td >
		    		<button ng-click="add(teachplan)"class="icon-plus btn" data-toggle="modal" data-target="#myModal"style="color:#d2322d"></button>
		    	</td>			
			</tr>
		</tbody>		
	</table>
	<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
	 	<div class="modal-dialog">
	    	<div class="modal-content">
	        	<div class="modal-header">
	        		<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
	        		<h4 class="modal-title">添加关联方案</h4>
	     		</div>
	      		<div class="modal-body">
					<div class="row">
						<div class="col-md-4">
						    <select class="form-control" ng-model="cat" ng-options="cat.name for cat in cats">
						       <option value="">-- 请选择分类 --</option>
						    </select>
						</div>
						<div class="col-md-4" ng-if="cat.teacher_name">
						    <select class="form-control" ng-model="content" ng-options="content.name for content in contents">
						        <option value="">-- 请选择知识点 --</option>
						    </select>
						</div>
					</div>
					<div>您选择的是：{{cat.name}} - {{content.label}}</div>
	      		</div>
	     		 <div class="modal-footer">
	        		<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
	        		<button ng-click="addplan(cat,planid)" type="button" class="btn btn-primary" data-dismiss="modal">完成</button>
	      		</div>
	   		 </div>
	  	</div>
	</div>
</div>

